making test for amount directive
added promises in transaction.js and refactored bankService