I have followed the tutorials of Dapp University. Using Ganache and Metamask 127.0.0.1:7545 and did a truffle test or migrate it works perfectly.
I created 2 accounts. Then started mining. account now has 3000 ethereum, I added in metamask, its shows the same number. Then I added account1 in metamask with 0 ethereum, works great.