Adding tests for BlackBerry 10 and fixed some errors up