Added feature tests. Still fighting with some JS-related stuff, so not all tests pass consistently