add contraints for all money entities along with basic unit test