Could not install custom app in frappe docker bench

I am new to frappe docker, i have created a site in frappe docker and its working fine. I have created a custom app called test and tried installing it in my site using

./dbench --site site1.local install-app test

But its giving error as could not find app “test”

Kindly help, thanks!

It worked after removing and installing the app.