Update FM tests to work in browser