added some tests to visual music model
refactor of visual music model methods to template