wrote all tests for demos