FWAPI-182: Add fw.js tests