Add test framework

add some minimal behaviour testing. Main purpose is general testability for module.