added tests for M.Application