Added very basic tests

Just those that can be done in JavaScript