tests and further work